﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using log4net;


/// <summary>
/// Summary description for AppLog
/// </summary>
public class AppLog
{
    static AppLog instance = null;
    public static AppLog Instance
    {
        get
        {
            if(instance==null)
             instance=new AppLog();
            return instance;
        }
    }

    private static readonly ILog Logger = LogManager.GetLogger(typeof(AppLog));
    public void LogInfo(string Info)
    {
        Logger.Info(Info);
    }

    public void LogDebug(object  debug)
    {
        Logger.Debug(debug);
    }

    public void LogError(object error)
    {
        Logger.Error(error);
    }

    public void LogError(object error,Exception ex)
    {
        Logger.Error(error,ex);
    }

}